package Xuanke;

public class Student {
    public int code;
    public String name;
    public String sex;
    public String lesson;

    public Student(int code,String name,String sex){
        this.code=code;
        this.name=name;
        this.sex=sex;
    }

    public String toString(){
        return "学生信息:  姓名：" + name + " 学号：" + code + " 性别：" + sex ;
    }
    void tuike() {
        lesson=null;
    }
    void delete() {
        if(lesson== null);{
            System.out.println("学生目前未选课");}

    }
}


